//--- frame destroya --------------------------------------

function noframes() {
	if (top.location != self.location) {
		top.location.href = self.location.href;
	}
}

//--- Form checkers ---------------------------------

function checkfrm_search() {
	var messg = "";

	if ((document.forms['frmsearch'].keywords.value=='') || (document.forms['frmsearch'].keywords.value=='keyword(s)') || (document.forms['frmsearch'].keywords.value==' '))
		messg += "Please enter your keyword(s) to perform a search\n";

	if (messg=='') {
		return true;
	}
	else {
		alert(messg);
		return false;
	}
}

//--- Popup windows ----------------------------------

function popup1(url,name,w,h) {  // status bar, scroll bars, resizable
	var winW = (screen.width - w) / 2;
	var winH = (screen.height - h) / 2;
	var win1 = window.open(url,name,'width='+w+',height='+h+',top='+winH+',left='+winW+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');
	win1.focus();
}

function popup2(url,name,w,h) {  // status bar
	var winW = (screen.width - w) / 2;
	var winH = (screen.height - h) / 2;
	var win2 = window.open(url,name,'width='+w+',height='+h+',top='+winH+',left='+winW+',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no');
	win2.focus();
}

function popup3(url,name,w,h) {
	var winW = (screen.width - w) / 2;
	var winH = (screen.height - h) / 2;
	var win3 = window.open(url,name,'width='+w+',height='+h+',top='+winH+',left='+winW+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
	win3.focus();
}

//--- div mouseover --------------------------------------------

function Swap(obj, new_style) {
    obj.className = new_style;
}

//--- spam destroya --------------------------------------------

function nospam(ahost,auser) {
	window.document.location.href = "mailto:"+auser+"@"+ahost;
}

//--- Start me up! --------------------------------------

function startup() {
	noframes();
//	window.status = "codito ergo sum ... I code, therefore I am";
}
window.onload = startup;